<template>
  <div>
    <c-table :tableConfig="handelConfig">
      <template v-slot="{ rowData }">
        <el-button size="mini" @click="edit(rowData)">编辑</el-button>
        <el-button size="mini" @click="del(rowData)">删除</el-button>
      </template>
    </c-table>
  </div>
</template>

<script>

import { tableConfig } from "./tableConfig";

export default {
  data() {
    return {};
  },
  computed: {
    handelConfig() {
      return tableConfig;
    },
  },
  created() {},
  mounted() {},
  methods: {
    edit(row) {
      console.log(row);
    },
    del(row) {
      console.log(row);
    },
  },
};
</script>

<style scoped lang="scss">
  
</style>
